﻿
// LiWeiDlg.h: 头文件
//


#pragma once
#include "Connect.h"
#include "MoveLine.h"
#include "MoveCircle.h"
#include "MoveContinue.h"
#include "Helical.h"
#include "IO.h"
#include "GoHome.h"
#include "HandWheel.h"
#include "Warn.h"
#include "CanWheel.h"
#include "AutoCam.h"
#include "HwPs_Regist.h"
#include "PCAndBasic.h"
#include "DiyToDo.h"

// CLiWeiDlg 对话框
class CLiWiDlg : public CDialogEx
{
	// 构造
public:
	CLiWiDlg(CWnd* pParent = nullptr);	// 标准构造函数

	// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_LIWEI_DIALOG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


	// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:

	Connect* connect;		//子窗口：连接
	MoveLine* moveLine;		//直线插补
	MoveCircle* moveCircle;	//圆弧插补
	MoveContinue* moveContinue;	//连续插补
	Helical* helical;		//螺旋插补
	IO* io;					//IO
	GoHome* goHome;			//回原
	HandWheel* handWheel;	//手轮测试
	Warn* warn;				//报警
	CanWheel* canWheel;		//电子凸轮跟随
	AutoCam* autoCam;		//自动电子凸轮
	HwPs_Regist* hwPs_Regist;	//位置比较输出与锁存
	PCAndBasic* pcAndBasic;	//上位机与Basic交互
	DiyToDo* diyToDo;		//自定义指令封装








	CTabCtrl tabItem;

	afx_msg void OnBnClickedOk();
	afx_msg void OnTcnSelchangeTab1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	afx_msg void OnBnClickedStop();
	afx_msg void OnBnClickedClear();

	void IniFlag();
};
